package com.xt.purchasingsystem;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @author: 老姚
 * Date:  2020/5/18 15:02
 */
@SpringBootTest
public class test {
    @Test
    public void test01() {
        String str = "3050020200514575573-组装";
        String substring = str.substring(str.lastIndexOf("-")+1);
        System.out.println(substring);



    }
}
